/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.rbh.risk.dao;

import com.rbh.risk.entity.ACL;
import com.rbh.risk.entity.Privilege;
import com.rbh.risk.entity.Role;
import java.util.List;
import org.springframework.dao.DataAccessException;

/**
 *
 * @author M
 */
public interface PrivilegeDao {

    public void insert(Privilege privilege) throws DataAccessException;

    public void update(Privilege privilege) throws DataAccessException;

    public void delete(Privilege privilege) throws DataAccessException;

    public Privilege getById(Integer privilegeId) throws DataAccessException;

    public List<Privilege> getByRole(Role role) throws DataAccessException;

    public List<Privilege> getByACL(ACL acl) throws DataAccessException;

    public List<Privilege> getAll() throws DataAccessException;
}